package com.qiaoya.interceptor;

import org.springframework.web.bind.annotation.ControllerAdvice;  
import org.springframework.web.servlet.mvc.method.annotation.AbstractJsonpResponseBodyAdvice;  
  
/**
 * @author xiaoqiao
 * @since 201706281820
 * jsonp跨域请求，缺点是只支持Get请求，方法比较旧了 
 * 跨域请求处理
 * 
 */  
@ControllerAdvice(basePackages = "com.qiaoya.web.controller")  
public class JsonpAdvice extends AbstractJsonpResponseBodyAdvice{  
  
    public JsonpAdvice() {  
  
        super("callback","jsonp");  
    }  
}  

